﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Windows.Navigation;
using Baosight.ZNH.ZMCommon;
using Baosight.Platform.Core;
using Baosight.ZNH.ZMCM.UI.ChildWindows;
using Baosight.ZNH.ZMCommon.ChildWindows;
using Telerik.Windows.Controls;
using Baosight.ZNH.ZMCM.UI.Utils;
using System.Text;
using Baosight.Platform.Core.UI.Controls;

namespace Baosight.ZNH.ZMCM.UI
{
    public partial class ZMCMJ0 : EFViewCmes
    {
        public ZMCMJ0()
        {
            InitializeComponent();
        }
        public override void Initialize(EIInfo initData)
        {
            base.Initialize(initData);
        }

        private void EFTab_SelectionChanged(object sender, RoutedEventArgs e)
        {
            EFTab tab = sender as EFTab;
            if (tab.SelectedItem != null)
            {
                Dictionary<string, string> args = new Dictionary<string, string>();
                if (tab.SelectedItem.Equals(this.TeamPlanQuery))
                {
                    args = new Dictionary<string, string>();
                    this.TeamPlanQuery.LoadView("ZMCMJ1", args);
                }
                else if (tab.SelectedItem.Equals(this.StockPlanQuery))
                {
                    args = new Dictionary<string, string>();
                    this.StockPlanQuery.LoadView("ZMCMJ2", args);
                }
                else if (tab.SelectedItem.Equals(this.ReceiveGoodsQuery))
                {
                    args = new Dictionary<string, string>();
                    this.ReceiveGoodsQuery.LoadView("ZMCMJ3", args);
                }
                else if (tab.SelectedItem.Equals(this.ImportMaterialQuery))
                {
                    args = new Dictionary<string, string>();
                    this.ImportMaterialQuery.LoadView("ZMCMJ4", args);
                }
                else if (tab.SelectedItem.Equals(this.ExportMaterialQuery))
                {
                    args = new Dictionary<string, string>();
                    this.ExportMaterialQuery.LoadView("ZMCMJ5", args);
                }
            }
        }
      
    }
}
